<template>
  <div>
    <button @click="onClick">按钮</button>
  </div>
</template>
<script setup lang="ts">
const delay = () => {
  return new Promise(resolve => setTimeout(resolve, 1000 * 10))
}

const onClick = () => {
}

onMounted(() => {
  console.log('mounted')
})
onNuxtReady(async () => {
  console.log('qqqqApp Ready!')
})

await delay()
// const user = ref<any>({})
// const fetch = async () => {
//   try {
//     const res = await userApi.fetch({ id: 'aaaa' })
//     user.value = res?.data
//   } catch (err) {
//     console.error(err)
//   }
// }
</script>
